include ../config.mk
SUBDIR := $(filter-out webroot,$(SUBDIR))
SUBTGT = all
.PHONY: all clean install distclean subdir $(SUBDIR) cleanwebroot
all:cleanwebroot $(target) subdir

clean:
	$(MAKE) $(SUBDIR) SUBTGT=$@
	$(MAKE) cleanwebroot
app:core

cleanwebroot:
	$(RM) ./webroot/index.cgi
	
stripwebroot:
	$(STRIP) ./webroot/index.cgi

install:
	$(MAKE) $(SUBDIR) SUBTGT=$@
	#$(MAKE) stripwebroot

subdir:$(SUBDIR)

$(SUBDIR):
	$(MAKE) -C $@ $(SUBTGT)
